/*
 *http://www.apache.org/licenses/LICENSE-2.0
 *Copyright (c) 2021 fullset
 *@ClassName SysUserService
 *@date 2021/6/5 10:52
 *@Description 用户管理
 */
package com.fs.base.service;

import com.fs.orm.entity.SysUser;
import com.fs.orm.vo.form.SysUserForm;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface SysUserService  {

    SysUserForm addUser(SysUserForm sysUserForm) throws Exception;

    SysUserForm editUser(SysUserForm sysUserForm);

    /**
     * 获取全部用户
     * @return
     */
    List<SysUser> getAll();

    /**
     * 系统用户表格
     * @param params
     * @return
     */
    PageInfo<SysUser> getLayTable(Map<String, Object> params);

    /**
     * 初始化用户表单
     * @return
     */
    SysUserForm initForm();

    /**
     * 编辑用户表单
     * @return
     */
    SysUserForm editForm(Long id);

    /**
     * 逻辑删除用户
     * @param id 用户id
     * @return
     */
    boolean logicalDeleteById(String id);

    /**
     * 批量删除
     * @param ids 选中的用户id
     * @return
     */
    boolean batchDel(String ids);
}
